package com.zmm.util.auth.registry.annotation;

import com.zmm.util.auth.enums.ApiType;
import org.springframework.web.bind.annotation.Mapping;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 接口类型注解 主要用于限制内部服务接口之前的IP白名单
 * @author 900045
 * @description:
 * @name AuthApi
 * @date By 2021-07-06 09:51:49
 */
@Target(value = { ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Mapping
public @interface AuthApi {

	/**
	 * 接口类型
	 *
	 * @see ApiType
	 * @return
	 */
	ApiType apiType();
}
